import request from '@/utils/request';

// 获取考试历史列表
export function queryExamHisList(params) {
	return request({
		method: 'get',
		url: 'testExamHis/query',
		params
	});
}

// 新增考试课程关系
export function addedExamCourse(data) {
	return request({
		method: 'post',
		url: 'testExamHis/add',
		data
	});
}

// 批量删除考试课程关系
export function batchDeleteExamCourse(data) {
	return request({
		method: 'post',
		url: 'testExamHis/deleteBatch',
		data
	});
}

//获取考试历史详情
export function examHisDetail(id) {
	return request({
		method: 'get',
		url: 'testExamHis/query/' + id
	});
}